package com.example.service.teacher;

import com.example.entity.DTO.CourseDetailDTO;
import com.example.mapper.CourseMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherCourseService {
    @Resource
    private CourseMapper courseMapper;

    public List<CourseDetailDTO> selectAllCourse(Integer teacherId) {
        return courseMapper.selectAllCourseByTeacherId(teacherId);
    }
}
